﻿#include "DialogEvaluationSubmission.h"
#include "ui_DialogEvaluationSubmission.h"

#include "AnimationSettingData.h"
#include "DataChosenListDialog.h"
#include <QIntValidator>
#include "IdaWidgetHelper.h"
#include "DataManager/WindowTotalData.h"
#include "BaseWidget/IdaDialogMsg.h"
#include <QListView>
#include <QDebug>

namespace pst
{
    DialogEvaluationSubmission::DialogEvaluationSubmission(QWidget* parent)
        : IdaDialogFrame(parent), ui(new Ui::DialogEvaluationSubmission())
    {
        ui->setupUi(this);

        setWindowTitle(tr("评估提交"));
        IdaWidgetHelperInstance->setMainButtonStyle(ui->pushButton_confirm); // 将确定设置为主按钮

        //ui->pushButton_Lightning->setIcon(QIcon(":/rc/apostrophe.png"));
        //ui->pushButton_Lightning->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_Lightning_port_current->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_Lightning_port_current->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_Lightning_port_voltage->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_Lightning_port_voltage->setStyleSheet("QPushButton { text-align: center; }");
        
            

        ui->pushButton_HIRFMeanElectric->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_HIRFMeanElectric->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_HIRFPeakElectric->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_HIRFPeakElectric->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_HIRFMeanCurrent->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_HIRFMeanCurrent->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_HIRFPeakCurrent->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_HIRFPeakCurrent->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_HIRFPortVoltage->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_HIRFPortVoltage->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_HIRFCablePortVoltage->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_HIRFCablePortVoltage->setStyleSheet("QPushButton { text-align: center; }");

        ui->pushButton_MicrowaveElectric->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_MicrowaveElectric->setStyleSheet("QPushButton { text-align: center; }");
        //ui->pushButton_MicrowaveCurrent->setIcon(QIcon(":/rc/apostrophe.png"));
        //ui->pushButton_MicrowaveCurrent->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_MicrowavePortVoltage->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_MicrowavePortVoltage->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_MicrowaveCablePortVoltage->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_MicrowaveCablePortVoltage->setStyleSheet("QPushButton { text-align: center; }");

        ui->pushButton_PulseElectric->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_PulseElectric->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_PulseCurrent->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_PulseCurrent->setStyleSheet("QPushButton { text-align: center; }");
        ui->pushButton_PulsePortVoltage->setIcon(QIcon(":/rc/apostrophe.png"));
        ui->pushButton_PulsePortVoltage->setStyleSheet("QPushButton { text-align: center; }");
        //ui->pushButton_PulseCablePortVoltage->setIcon(QIcon(":/rc/apostrophe.png"));
        //ui->pushButton_PulseCablePortVoltage->setStyleSheet("QPushButton { text-align: center; }");

        ui->groupBox_Lightning->setEnabled(false);
        ui->groupBox_HIRF->setEnabled(false);
        ui->groupBox_Microwave->setEnabled(false);
        ui->groupBox_Pulse->setEnabled(false);
    }

    DialogEvaluationSubmission::~DialogEvaluationSubmission()
    {
        delete ui;
    }

    void DialogEvaluationSubmission::setCurveNameHash(const QMultiHash<int, QString>& namesHash)
    {
        m_namesHash = namesHash;
    }

    void DialogEvaluationSubmission::on_pushButton_confirm_clicked()
    {
        int emulationType = -1;
        QStringList graphNameList;
        if (ui->groupBox_Lightning->isEnabled())
        {
            emulationType = 0;
            graphNameList = QStringList{ui->lineEdit_Lightning_port_current->text(), ui->lineEdit_Lightning_port_voltage->text()}; // ui->lineEdit_Lightning->text()
        }
        else if (ui->groupBox_HIRF->isEnabled())
        {
            emulationType = 1;
            graphNameList = QStringList{ui->lineEdit_HIRFMeanElectric->text(), ui->lineEdit_HIRFPeakElectric->text(), ui->lineEdit_HIRFMeanCurrent->text(), ui->lineEdit_HIRFPeakCurrent->text(), ui->lineEdit_HIRFPortVoltage->text(), ui->lineEdit_HIRFCablePortVoltage->text()};
        }
        else if (ui->groupBox_Microwave->isEnabled())
        {
            emulationType = 2;
            //, ui->lineEdit_MicrowaveCurrent->text()
            graphNameList = QStringList{ui->lineEdit_MicrowaveElectric->text(), ui->lineEdit_MicrowavePortVoltage->text(), ui->lineEdit_MicrowaveCablePortVoltage->text()};
        }
        else if (ui->groupBox_Pulse->isEnabled())
        {
            emulationType = 3;
            graphNameList = QStringList{ui->lineEdit_PulseElectric->text(), ui->lineEdit_PulseCurrent->text(), ui->lineEdit_PulsePortVoltage->text()};//, ui->lineEdit_PulseCablePortVoltage->text()
        }
        emit signal_submitEvaluation(emulationType, graphNameList);
        this->close();
    }

    void DialogEvaluationSubmission::on_pushButton_cancel_clicked()
    {
        this->close();
    }

    void DialogEvaluationSubmission::slot_sentChosenDataIds(const QModelIndexList& chosenID)
    {
        m_selectedIndexs.clear();
        auto count = chosenID.count();
        QString strText{};
        for (int i = 0; i < count; ++i)
        {
            auto chosenData = chosenID.at(i);
            if (chosenData.isValid())
            {
                auto str = chosenData.data().toString();
                strText = str;

                auto index = chosenID.at(i).row();
                m_selectedIndexs.append(index);
            }
        }

        if (m_isPushButtonLightningPortCurrentClicked)
            ui->lineEdit_Lightning_port_current->setText(strText);
        else if (m_isPushButtonLightningPortVoltageClicked)
            ui->lineEdit_Lightning_port_voltage->setText(strText);
        else if (m_isPushButtonHIRFMeanElectricClicked)
            ui->lineEdit_HIRFMeanElectric->setText(strText);
        else if (m_isPushButtonHIRFPeakElectricClicked)
            ui->lineEdit_HIRFPeakElectric->setText(strText);
        else if (m_isPushButtonHIRFMeanCurrentClicked)
            ui->lineEdit_HIRFMeanCurrent->setText(strText);
        else if (m_isPushButtonHIRFPeakCurrentClicked)
            ui->lineEdit_HIRFPeakCurrent->setText(strText);
        else if (m_isPushButtonHIRFPortVoltageClicked)
            ui->lineEdit_HIRFPortVoltage->setText(strText);
        else if (m_isPushButtonHIRFCablePortVoltageClicked)
            ui->lineEdit_HIRFCablePortVoltage->setText(strText);
        else if (m_isPushButtonMicrowaveElectricClicked)
            ui->lineEdit_MicrowaveElectric->setText(strText);
        //else if (m_isPushButtonMicrowaveCurrentClicked)
        //    ui->lineEdit_MicrowaveCurrent->setText(strText);
        else if (m_isPushButtonMicrowavePortVoltageClicked)
            ui->lineEdit_MicrowavePortVoltage->setText(strText);
        else if (m_isPushButtonMicrowaveCablePortVoltageClicked)
            ui->lineEdit_MicrowaveCablePortVoltage->setText(strText);
        else if (m_isPushButtonPulseElectricClicked)
            ui->lineEdit_PulseElectric->setText(strText);
        else if (m_isPushButtonPulseCurrentClicked)
            ui->lineEdit_PulseCurrent->setText(strText);
        else if (m_isPushButtonPulsePortVoltageClicked)
            ui->lineEdit_PulsePortVoltage->setText(strText);
        //else if (m_isPushButtonPulseCablePortVoltageClicked)
        //    ui->lineEdit_PulseCablePortVoltage->setText(strText);
    }
    void DialogEvaluationSubmission::on_radioButton_Lightning_clicked()
    {
        ui->groupBox_Lightning->setEnabled(true);
        ui->groupBox_HIRF->setEnabled(false);
        ui->groupBox_Microwave->setEnabled(false);
        ui->groupBox_Pulse->setEnabled(false);
        m_currentNameList.clear();
        m_currentNameList.append(m_namesHash.values(0));
    }
    void DialogEvaluationSubmission::on_radioButton_HIRF_clicked()
    {
        ui->groupBox_Lightning->setEnabled(false);
        ui->groupBox_HIRF->setEnabled(true);
        ui->groupBox_Microwave->setEnabled(false);
        ui->groupBox_Pulse->setEnabled(false);

        auto _hirfExtrapolationCurveData = WindowTotalDataInstance->getHirfExtrapolationCurveData();
        if (_hirfExtrapolationCurveData.isEmpty())
        {
            ui->groupBox_HIRF->setEnabled(false);
            EDialogMsgResult _result = IdaDialogMsg::showDialog(this, QStringLiteral("请先进行HIRF外推操作！"), EDialogMsg::Warning, QStringLiteral("错误"));
            return;
        }
        m_currentNameList.clear();
        m_currentNameList.append(m_namesHash.values(1));
        for (auto value : _hirfExtrapolationCurveData.values())
        {
            m_currentNameList.append(value);
        }

    }
    void DialogEvaluationSubmission::on_radioButton_Microwave_clicked()
    {
        ui->groupBox_Lightning->setEnabled(false);
        ui->groupBox_HIRF->setEnabled(false);
        ui->groupBox_Microwave->setEnabled(true);
        ui->groupBox_Pulse->setEnabled(false);
        m_currentNameList.clear();
        m_currentNameList.append(m_namesHash.values(2));
    }
    void DialogEvaluationSubmission::on_radioButton_Pulse_clicked()
    {
        ui->groupBox_Lightning->setEnabled(false);
        ui->groupBox_HIRF->setEnabled(false);
        ui->groupBox_Microwave->setEnabled(false);
        ui->groupBox_Pulse->setEnabled(true);
        m_currentNameList.clear();
        m_currentNameList.append(m_namesHash.values(3));
    }

    void DialogEvaluationSubmission::openDataChosenListDialog()
    {
        m_dataChosenListDialog = new DataChosenListDialog();
        m_dataChosenListDialog->setFixedSize(300, 280);
        // m_dataChosenListDialog->moveToCenter();
        m_dataChosenListDialog->setData(m_currentNameList);
        m_dataChosenListDialog->setMultipleSelected(false);
        m_dataChosenListDialog->updateUI();
        m_dataChosenListDialog->showWindow();
        m_dataChosenListDialog->setSelctedIndexs(m_selectedIndexs); // 默认选中第一个

        connect(m_dataChosenListDialog,
                &DataChosenListDialog::signal_sentChosenDataIds,
                this, &DialogEvaluationSubmission::slot_sentChosenDataIds);
    }

    //void DialogEvaluationSubmission::on_pushButton_Lightning_clicked()
    //{
    //    m_isPushButtonLightningClicked = true;
    //    m_isPushButtonHIRFMeanElectricClicked = false;
    //    m_isPushButtonHIRFPeakElectricClicked = false;
    //    m_isPushButtonHIRFMeanCurrentClicked = false;
    //    m_isPushButtonHIRFPeakCurrentClicked = false;
    //    m_isPushButtonHIRFPortVoltageClicked = false;
    //    m_isPushButtonHIRFCablePortVoltageClicked = false;
    //    m_isPushButtonMicrowaveElectricClicked = false;
    //    m_isPushButtonMicrowaveCurrentClicked = false;
    //    m_isPushButtonMicrowavePortVoltageClicked = false;
    //    m_isPushButtonMicrowaveCablePortVoltageClicked = false;
    //    m_isPushButtonPulseElectricClicked = false;
    //    m_isPushButtonPulseCurrentClicked = false;
    //    m_isPushButtonPulsePortVoltageClicked = false;
    //    m_isPushButtonPulseCablePortVoltageClicked = false;
    //    openDataChosenListDialog();
    //}

    void DialogEvaluationSubmission::on_pushButton_Lightning_port_current_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = true;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }

    void DialogEvaluationSubmission::on_pushButton_Lightning_port_voltage_clicked() 
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = true;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }

    void DialogEvaluationSubmission::on_pushButton_HIRFMeanElectric_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = true;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_HIRFPeakElectric_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = true;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_HIRFMeanCurrent_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = true;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_HIRFPeakCurrent_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = true;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_HIRFPortVoltage_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = true;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }

    void DialogEvaluationSubmission::on_pushButton_HIRFCablePortVoltage_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = true;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_MicrowaveElectric_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = true;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    //void DialogEvaluationSubmission::on_pushButton_MicrowaveCurrent_clicked()
    //{
    //    m_isPushButtonLightningPortCurrentClicked = false;
    //    m_isPushButtonLightningPortVoltageClicked = false;
    //    m_isPushButtonHIRFMeanElectricClicked = false;
    //    m_isPushButtonHIRFPeakElectricClicked = false;
    //    m_isPushButtonHIRFMeanCurrentClicked = false;
    //    m_isPushButtonHIRFPeakCurrentClicked = false;
    //    m_isPushButtonHIRFPortVoltageClicked = false;
    //    m_isPushButtonHIRFCablePortVoltageClicked = false;
    //    m_isPushButtonMicrowaveElectricClicked = false;
    //    //m_isPushButtonMicrowaveCurrentClicked = true;
    //    m_isPushButtonMicrowavePortVoltageClicked = false;
    //    m_isPushButtonMicrowaveCablePortVoltageClicked = false;
    //    m_isPushButtonPulseElectricClicked = false;
    //    m_isPushButtonPulseCurrentClicked = false;
    //    m_isPushButtonPulsePortVoltageClicked = false;
    //    m_isPushButtonPulseCablePortVoltageClicked = false;
    //    openDataChosenListDialog();
    //}
    void DialogEvaluationSubmission::on_pushButton_MicrowavePortVoltage_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = true;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_MicrowaveCablePortVoltage_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = true;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_PulseElectric_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = true;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_PulseCurrent_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = true;
        m_isPushButtonPulsePortVoltageClicked = false;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    void DialogEvaluationSubmission::on_pushButton_PulsePortVoltage_clicked()
    {
        m_isPushButtonLightningPortCurrentClicked = false;
        m_isPushButtonLightningPortVoltageClicked = false;
        m_isPushButtonHIRFMeanElectricClicked = false;
        m_isPushButtonHIRFPeakElectricClicked = false;
        m_isPushButtonHIRFMeanCurrentClicked = false;
        m_isPushButtonHIRFPeakCurrentClicked = false;
        m_isPushButtonHIRFPortVoltageClicked = false;
        m_isPushButtonHIRFCablePortVoltageClicked = false;
        m_isPushButtonMicrowaveElectricClicked = false;
        //m_isPushButtonMicrowaveCurrentClicked = false;
        m_isPushButtonMicrowavePortVoltageClicked = false;
        m_isPushButtonMicrowaveCablePortVoltageClicked = false;
        m_isPushButtonPulseElectricClicked = false;
        m_isPushButtonPulseCurrentClicked = false;
        m_isPushButtonPulsePortVoltageClicked = true;
        //m_isPushButtonPulseCablePortVoltageClicked = false;
        openDataChosenListDialog();
    }
    //void DialogEvaluationSubmission::on_pushButton_PulseCablePortVoltage_clicked()
    //{
    //    m_isPushButtonLightningPortCurrentClicked = false;
    //    m_isPushButtonLightningPortVoltageClicked = false;
    //    m_isPushButtonHIRFMeanElectricClicked = false;
    //    m_isPushButtonHIRFPeakElectricClicked = false;
    //    m_isPushButtonHIRFMeanCurrentClicked = false;
    //    m_isPushButtonHIRFPeakCurrentClicked = false;
    //    m_isPushButtonHIRFPortVoltageClicked = false;
    //    m_isPushButtonHIRFCablePortVoltageClicked = false;
    //    m_isPushButtonMicrowaveElectricClicked = false;
    //    //m_isPushButtonMicrowaveCurrentClicked = false;
    //    m_isPushButtonMicrowavePortVoltageClicked = false;
    //    m_isPushButtonMicrowaveCablePortVoltageClicked = false;
    //    m_isPushButtonPulseElectricClicked = false;
    //    m_isPushButtonPulseCurrentClicked = false;
    //    m_isPushButtonPulsePortVoltageClicked = false;
    //    m_isPushButtonPulseCablePortVoltageClicked = true;
    //    openDataChosenListDialog();
    //}

} // namespace pst
